# Rem - Requirements and Entity Modeler = UML + AOP + Open Source + Cross Platform
# Copyright (C) 2008 Adrian Kosmaczewski - http://remproject.org/
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

PROJECT (thiensqlitecmake)

CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
SET(CMAKE_COLOR_MAKEFILE ON)
SET(CMAKE_VERBOSE_MAKEFILE OFF)

SET (thien_SRCS 
  bind_insert.c

)


# Build shared lib sqlite3
SET(sqlite3_SRCS ${thiensqlitecmake_SOURCE_DIR}/../lib/sqlite/sqlite3.c)
#ADD_LIBRARY(sqlite3 SHARED ${sqlite3_SRCS})
ADD_LIBRARY(sqlite3 STATIC ${sqlite3_SRCS})

# Header files are located in these directories
INCLUDE_DIRECTORIES (
    ${thiensqlitecmake_SOURCE_DIR}/../lib/sqlite
)

# Libraries are located in these directories
LINK_DIRECTORIES (
    ${thiensqlitecmake_SOURCE_DIR}/../lib/sqlite
)

ADD_EXECUTABLE (thiensqlitecmake WIN32
    ${thien_SRCS}
)

# These are the symbols for the linker
TARGET_LINK_LIBRARIES(thiensqlitecmake
    sqlite3 
)
